<include file="Public:header"/>

	<Joyeasy:list sql="SELECT * FROM `yey_category` where id=$parentid" id="r">					
		<!--首页zhongbox-->
		<div class="zhongbox">
			<div class="zhongnr">
				<!--二级banner-->
				<div class="erjibanner">
					<img src="{$r.image}" width="840" height="260" />
				</div>
				<!--二级banner-->
				<!--二级tou-->
				<div class="erjit">
					<div class="erjit_t" style="margin-left:10px;">
					{$r.catname}
					</div>
					<style>
					.erjit_li{margin-left:5px;margin-right:5px;margin-top:2px;}
					.erjit_li2{margin-left:5px;margin-right:5px;margin-top:2px;}
					</style>
                    <Joyeasy:list sql="SELECT * FROM `yey_category` where parentid=$r[id] order by listorder asc,id asc" id="rs">					
                        <if condition="$rs.id eq $catid">
							<div class="erjit_li2">
								<a href="{$rs.url}">{$rs.catname}</a>
							</div>
                        <else />
							<div class="erjit_li">
								<a href="{$rs.url}">{$rs.catname}</a>
							</div>
                        </if>
                    </Joyeasy:list>
					<img src="../Public/img/qidi.jpg" style="float:right;margin-right:20px;" />
					<div class="clear"></div>
				</div>
				<!--二级tou-->
				<!--二级content-->
				<div class="erji_nr">
					<div class="lessons">
						<div class="lessons_top">
						{$r.description}
						</div>
						<Joyeasy:list sql="SELECT * FROM `yey_category` where parentid=$r[id] order by listorder asc,id asc" id="rs" key="i">
							<if condition="$rs.id eq $catid">
								<div class="lessons_li{$i}" style="border:none;">
									<div class="lessons_li_z{$i}">
									
									</div>
									<div class="lessons_li_title{$i}">
										<div class="lessons_li_title_t{$i}">
										{$rs.catname}
										</div>
										<div class="lessons_li_title_n{$i}">
										{$rs.description}
										</div>
									</div>
									<div class="lessons_li_y">
										<img src="{$rs.image}" />
									</div>
									<div class="clear"></div>
								</div>
							<else />
								<div class="lessons_li{$i}" style="display:none;">
									<div class="lessons_li_z{$i}">
									
									</div>
									<div class="lessons_li_title{$i}">
										<div class="lessons_li_title_t{$i}">
										{$rs.catname}
										</div>
										<div class="lessons_li_title_n{$i}">
										{$rs.description}
										</div>
									</div>
									<div class="lessons_li_y">
										<img src="{$rs.image}" />
									</div>
									<div class="clear"></div>
								</div>
							</if>
						</Joyeasy:list>
						<div class="lessons_list">
							<Joyeasy:list sql="SELECT * FROM `yey_shipin` where catid=$catid order by listorder asc,id desc" id="rs" key="i">
								<div class="lessons_list_li">
									<embed src="{$rs.description}" allowFullScreen="true" quality="high" width="198" height="170" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>
								</div>
							</Joyeasy:list>
							<div class="clear"></div>
						</div>
					</div>
					
				</div>
				<!--二级content-->
				<div class="clear"></div>
			</div>
		</div>
		<!--首页zhongbox-->
	</Joyeasy:list>

<include file="Public:footer"/>
